package com.evry.spring3sandbox.domain;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Product", propOrder = {
    "id",
    "description",
    "price",
    "name",
    "storageSpace",
    "bandwidth",
    "sqldatabase",
    "setupfee"
})
public class Product implements Serializable {

	private static final long serialVersionUID = 7000242946287892992L;
	@XmlElement(namespace="http://www.spring3sandbox.com/model")
	private Integer id;
	@XmlElement(namespace="http://www.spring3sandbox.com/model")
	private String description;
	@XmlElement(namespace="http://www.spring3sandbox.com/model")
	private Double price;
	@XmlElement(namespace="http://www.spring3sandbox.com/model")
    private String name;
	@XmlElement(namespace="http://www.spring3sandbox.com/model")
    private String storageSpace;
	@XmlElement(namespace="http://www.spring3sandbox.com/model")
    private String bandwidth;
	@XmlElement(namespace="http://www.spring3sandbox.com/model")
    private String sqldatabase;
	@XmlElement(namespace="http://www.spring3sandbox.com/model")
    private String setupfee;
	
    public String getStorageSpace() {
		return storageSpace;
	}

	public void setStorageSpace(String storageSpace) {
		this.storageSpace = storageSpace;
	}

	public String getBandwidth() {
		return bandwidth;
	}

	public void setBandwidth(String bandwidth) {
		this.bandwidth = bandwidth;
	}

	public String getSqldatabase() {
		return sqldatabase;
	}

	public void setSqldatabase(String sqldatabase) {
		this.sqldatabase = sqldatabase;
	}

	public String getSetupfee() {
		return setupfee;
	}

	public void setSetupfee(String setupfee) {
		this.setupfee = setupfee;
	}

    public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public Double getPrice() {
        return price;
    }
    
    public void setPrice(Double price) {
        this.price = price;
    }
    
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String toString() {
        StringBuffer buffer = new StringBuffer();
        buffer.append("Description: " + description + ";");
        buffer.append("Price: " + price);
        return buffer.toString();
    }
}
